package com.ym.medical.domain.param;

import com.ym.common.constant.BeanCovert;
import static com.ym.common.constant.ValidRule.Add;
import static com.ym.common.constant.ValidRule.Update;
import com.ym.medical.domain.entity.AccountEntity;
import com.ym.common.annotations.CustomConstraint;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户账户表对象 account
 *
 * @author ym
 * @date 2020-08-18
 */
@ApiModel("用户账户表-修改")
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AccountUpdateParam extends BeanCovert<AccountEntity>{

    @ApiModelProperty("主键")
    @NotNull(message = "主键不能为空", groups = {Add.class, Update.class})
    private Long id;

    @ApiModelProperty("用户主键")
    private Long userId;

    @ApiModelProperty("账户余额")
    @NotNull(message = "账户余额不能为空", groups = {Add.class, Update.class})
    private Double accBalance;

    @ApiModelProperty("冻结余额")
    @NotNull(message = "冻结余额不能为空", groups = {Add.class, Update.class})
    private Double freezeBalance;

    @ApiModelProperty("null")
    private Double coinBalance;

}
